#define _CRT_SECURE_NO_WARNINGS 1
#include "memory.h"


void memoryTest()
{
	//int arr1[] = { 1,2,3,4,5,6,7,8,9,10 };
	//int arr2[20] = { 0 };
	// memcpy(arr2, arr1,20); 
	// my_memcpy(arr2, arr1, 20);
	//int arr[] = { 1,2,3,4,5,6,7,8,9,10 };
	//my_memmove(arr + 2, arr, 20);

	char str[] = "helloworld";
	memset(str+2, 'x', 5);

	int a[] = { 1,2,3,4,5 };
	int b[] = { 1,2,3,4,0x11223301 };
	int r = memcmp(a,b, 17);
	printf("r = %d",r);
}

int main()
{
	memoryTest();

	return 0;
}
